package com.itheima.ydd.controller.client;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.ydd.common.PageResult;
import com.itheima.ydd.common.ResultData;
import com.itheima.ydd.dto.ArticleVo;
import com.itheima.ydd.entity.*;
import com.itheima.ydd.service.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;
import java.util.stream.Collectors;

@RestController
@Slf4j
public class VoController {

    @Autowired
    private ArticleService articleService;

    @Autowired
    private CateService cateService;

    @Autowired
    private ConfigService configService;

    @Autowired
    private YddTagService yddTagService;

    @Autowired
    private YddLinkService linkService;

    @Autowired
    private YddAdvimgService advimgService;

    /**
     * 分页查询首页文章
     *
     * @param page  页码
     * @param limit 页面条目数
     * @return 页面数据
     */
    @GetMapping("new")
    public ResultData getNew(Long page, Long limit) {
        log.info("查询文章page={},limit={}", page, limit);
        Page<Article> pageInfo = new Page<>(page, limit);
        articleService.page(pageInfo);
        //获取首页文章数据
        List<ArticleVo> articleVos = pageInfo.getRecords().stream().map(article -> {
            ArticleVo articleVo = new ArticleVo();
            BeanUtils.copyProperties(article, articleVo);
           /* LambdaQueryWrapper<Cate> qw=new LambdaQueryWrapper<>();
            qw.eq(article.getCateid()!=null,Cate::getId,article.getCateid());*/
            if (article.getCateid() != null) {
                Cate cate = cateService.getById(article.getCateid());
                articleVo.setCatename(cate.getCatename());
            }
            return articleVo;
        }).collect(Collectors.toList());

        PageResult pageResult = PageResult.init(pageInfo.getTotal(), limit, page, articleVos);
        Map<String, Object> map = new HashMap<>();
        map.put("list", pageResult);
        map.put("desc", "首页大列表");
        LambdaQueryWrapper<Article> qw1 = new LambdaQueryWrapper<>();
        Date date = new Date();
        long now = date.getTime();
        //查询24小时内文章数
        qw1.gt(Article::getCreate_date, (now - (24 * 60 * 60 * 1000L)));
        int numDay = articleService.count(qw1);
        map.put("num_day", numDay);
        LambdaQueryWrapper<Article> qw2 = new LambdaQueryWrapper<>();
        //查询7天内文章数
        qw2.gt(Article::getCreate_date, (now - (24 * 60 * 60 * 1000L * 7)));
        int numWeek = articleService.count(qw2);
        map.put("num_week", numWeek);
        log.info("数据为:{}", map);
        return ResultData.ok("", map);
    }

    /**
     * 前台主页热门资讯
     *
     * @return
     */
    @GetMapping("hot")
    public ResultData getHot() {
        Page<Article> page = new Page<>(1, 8);
        LambdaQueryWrapper<Article> lqw = new LambdaQueryWrapper<>();
        lqw.orderByDesc(Article::getCreate_date);
        List<Article> list = articleService.page(page, lqw).getRecords();
        List<ArticleVo> articleVos = list.stream().map(article -> {
            ArticleVo vo = new ArticleVo();
            BeanUtils.copyProperties(article, vo);
            Cate cate = cateService.getById(article.getCateid());
            vo.setCatename(cate.getCatename());
            return vo;
        }).collect(Collectors.toList());
        Map<String, Object> map = new HashMap<>();
        map.put("desc", "侧边最新文章");
        map.put("list", articleVos);
        return ResultData.ok("", map);
    }

    @GetMapping("show")
    public ResultData getShow(Integer id) {
        Map<String, Object> map = (Map) getHot().getData();
        List<ArticleVo> list = (List) map.get("list");
        map.put("recommend", list);
        Article article = articleService.getById(id);
        ArticleVo vo = new ArticleVo();
        BeanUtils.copyProperties(article, vo);
        Cate cate = cateService.getById(article.getCateid());
        vo.setCatename(cate.getCatename());
        map.put("info", vo);
        for (int i = 0; i < list.size(); i++) {
            if (Objects.equals(list.get(i).getId(), id)) {
                ArticleVo prev=i > 1 ? list.get(i - 1) : null;
                map.put("prev", new ArrayList<>().add(prev));
                ArticleVo next=i < (list.size() - 2) ? list.get(i + 1) : null;
                map.put("next", new ArrayList<>().add(next));
                break;
            /*
            ArticleVo prev=i > 1 ? list.get(i - 1) : null;
                List<ArticleVo> prevs=new ArrayList<>();
                prevs.add(prev);
                map.put("prev",prevs);
                ArticleVo next=i < (list.size() - 2) ? list.get(i + 1) : null;
                List<ArticleVo> nexts=new ArrayList<>();
                nexts.add(next);
                map.put("next",nexts);
                break;*/
            }
        }
        log.info("show为:{}", map);
        return ResultData.ok("", map);
    }

    @GetMapping("index")
    public ResultData getIndex(){
        Map<String, Object> map = configService.all();
        List<YddTag> tags = yddTagService.list();
        map.put("allTag",tags);
        List<YddLink> links = linkService.list();
        map.put("allLink",links);
        List<YddAdvimg> advimgs = advimgService.list();
        List<YddAdvimg> banner=new ArrayList<>();
        banner.add(advimgs.get(0));
        banner.add(advimgs.get(1));
        map.put("banner",banner);
        List<YddAdvimg> sideBanner=new ArrayList<>();
        banner.add(advimgs.get(2));
        banner.add(advimgs.get(3));
        banner.add(advimgs.get(4));
        map.put("sideBanner",sideBanner);
        List<YddAdvimg> showBanner=new ArrayList<>();
        banner.add(advimgs.get(5));
        banner.add(advimgs.get(6));
        banner.add(advimgs.get(7));
        map.put("showBanner",showBanner);
        List<Cate> cates = cateService.list();
        map.put("allCate",cates);
        return ResultData.ok("",map);
       // return "{\"errno\":0,\"errmsg\":\"\",\"data\":{\"allCate\":[{\"id\":3,\"catename\":\"时政\",\"icon\":\"fa-blind\",\"sort_num\":100,\"default_data\":\"1\"},{\"id\":969610,\"catename\":\"学习\",\"icon\":\"fa-car\",\"sort_num\":100,\"default_data\":null},{\"id\":8,\"catename\":\"科技\",\"icon\":\"fa-rocket\",\"sort_num\":10,\"default_data\":\"1\"},{\"id\":9,\"catename\":\"时尚\",\"icon\":\"fa-envira\",\"sort_num\":10,\"default_data\":\"1\"},{\"id\":969608,\"catename\":\"学习\",\"icon\":\"fa-car \",\"sort_num\":10,\"default_data\":null},{\"id\":7,\"catename\":\"段子\",\"icon\":\"fa-quora\",\"sort_num\":9,\"default_data\":\"1\"},{\"id\":6,\"catename\":\"汽车\",\"icon\":\"fa-car\",\"sort_num\":8,\"default_data\":\"1\"},{\"id\":80,\"catename\":\"动漫\",\"icon\":\"fa-car \",\"sort_num\":8,\"default_data\":null},{\"id\":4,\"catename\":\"图片\",\"icon\":\"fa-file-photo-o\",\"sort_num\":7,\"default_data\":\"1\"},{\"id\":5,\"catename\":\"娱乐\",\"icon\":\"fa-commenting\",\"sort_num\":7,\"default_data\":\"1\"}],\"config\":{\"list\":[{\"name\":\"基础配置\",\"key\":\"base\",\"children\":[{\"name\":\"站点配置\",\"data\":[{\"id\":24,\"group_value\":\"站点配置\",\"tab_value\":\"base\",\"attr_key\":\"site_name\",\"attr_name\":\"站点名称\",\"attr_value\":\"优点达资讯-发现有意思的事儿\",\"del_flag\":0,\"type\":1,\"config_value\":\"\",\"validator\":\"[{\\\"required\\\":true,\\\"message\\\":\\\"站点名必须\\\",\\\"trigger\\\":\\\"blur\\\"}]\",\"placeholder\":\"请输入站点名称\",\"can_delete\":0,\"sort_num\":1},{\"id\":25,\"group_value\":\"站点配置\",\"tab_value\":\"base\",\"attr_key\":\"site_link\",\"attr_name\":\"站点链接\",\"attr_value\":\"http://122.51.249.55:8060/home\",\"del_flag\":0,\"type\":1,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"请输入站点链接\",\"can_delete\":0,\"sort_num\":2},{\"id\":26,\"group_value\":\"站点配置\",\"tab_value\":\"base\",\"attr_key\":\"site_keywords\",\"attr_name\":\"站点关键字\",\"attr_value\":\"优点达资讯系统，优点达资讯系统优点达资讯系统优点达资讯系统\",\"del_flag\":0,\"type\":3,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"请输入站点关键字\",\"can_delete\":0,\"sort_num\":3},{\"id\":125,\"group_value\":\"站点配置\",\"tab_value\":\"base\",\"attr_key\":\"close_website\",\"attr_name\":\"是否关闭网站\",\"attr_value\":\"1\",\"del_flag\":0,\"type\":4,\"config_value\":[{\"label\":\"是\",\"value\":\"1\"},{\"label\":\"否\",\"value\":\"2\"}],\"validator\":\"\",\"placeholder\":\"请选择\",\"can_delete\":0,\"sort_num\":4}]},{\"name\":\"底部信息\",\"data\":[{\"id\":53,\"group_value\":\"底部信息\",\"tab_value\":\"base\",\"attr_key\":\"copy_code\",\"attr_name\":\"备案号\",\"attr_value\":\"皖-备88888888\",\"del_flag\":0,\"type\":1,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"请输入备案号\",\"can_delete\":0,\"sort_num\":5},{\"id\":54,\"group_value\":\"底部信息\",\"tab_value\":\"base\",\"attr_key\":\"copy_info\",\"attr_name\":\"版权信息\",\"attr_value\":\"优点达版权所有，翻版必究\",\"del_flag\":0,\"type\":1,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"请输入版权信息\",\"can_delete\":0,\"sort_num\":6},{\"id\":55,\"group_value\":\"底部信息\",\"tab_value\":\"base\",\"attr_key\":\"phone\",\"attr_name\":\"联系方式\",\"attr_value\":\"hewu1122@163.com\",\"del_flag\":0,\"type\":1,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"请输入联系方式\",\"can_delete\":0,\"sort_num\":6},{\"id\":56,\"group_value\":\"底部信息\",\"tab_value\":\"base\",\"attr_key\":\"copy_url\",\"attr_name\":\"备案链接地址\",\"attr_value\":\"http://www.baidu.com\",\"del_flag\":0,\"type\":1,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"请输入备案链接地址\",\"can_delete\":0,\"sort_num\":8}]},{\"name\":\"其他配置\",\"data\":[{\"id\":57,\"group_value\":\"其他配置\",\"tab_value\":\"base\",\"attr_key\":\"black_ip\",\"attr_name\":\"黑名单IP\",\"attr_value\":\"\",\"del_flag\":0,\"type\":3,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"黑名单IP，用逗号隔开，注意英文半角逗号\",\"can_delete\":0,\"sort_num\":9}]}]},{\"name\":\"系统设置\",\"key\":\"system\",\"children\":[{\"name\":\"管理系统配置\",\"data\":[{\"id\":79,\"group_value\":\"管理系统配置\",\"tab_value\":\"system\",\"attr_key\":\"system_name\",\"attr_name\":\"系统名称\",\"attr_value\":\"优点达资讯系统\",\"del_flag\":0,\"type\":1,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"显示在title和logo右侧文字内容\",\"can_delete\":0,\"sort_num\":0},{\"id\":80,\"group_value\":\"管理系统配置\",\"tab_value\":\"system\",\"attr_key\":\"system_logo\",\"attr_name\":\"系统logo\",\"attr_value\":\"static/admin/image/logo.png\",\"del_flag\":0,\"type\":9,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"显示在左上角位置，大小建议200*200\",\"can_delete\":0,\"sort_num\":0},{\"id\":81,\"group_value\":\"管理系统配置\",\"tab_value\":\"system\",\"attr_key\":\"web_ico\",\"attr_name\":\"网页图标\",\"attr_value\":\"static/admin/image/favicon.ico\",\"del_flag\":0,\"type\":9,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"网页favicon文件，ico类型，建议64*64\",\"can_delete\":0,\"sort_num\":0},{\"id\":77,\"group_value\":\"管理系统配置\",\"tab_value\":\"system\",\"attr_key\":\"login_title\",\"attr_name\":\"登录标题\",\"attr_value\":\"优点达资讯系统\",\"del_flag\":0,\"type\":1,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"显示在登录表单上面的内容\",\"can_delete\":0,\"sort_num\":10},{\"id\":78,\"group_value\":\"管理系统配置\",\"tab_value\":\"system\",\"attr_key\":\"login_bg\",\"attr_name\":\"登录页背景图\",\"attr_value\":\"uploadimages202206161655363890291.jpg\",\"del_flag\":0,\"type\":9,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"建议1920*1080尺寸\",\"can_delete\":0,\"sort_num\":11}]}]},{\"name\":\"其他设置\",\"key\":\"custom\",\"children\":[{\"name\":\"通知公告\",\"data\":[{\"id\":2,\"group_value\":\"通知公告\",\"tab_value\":\"custom\",\"attr_key\":\"notic_title\",\"attr_name\":\"公告标题\",\"attr_value\":\"感谢广告网网友\",\"del_flag\":0,\"type\":1,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"请输入公告标题\",\"can_delete\":0,\"sort_num\":10},{\"id\":78017,\"group_value\":\"通知公告\",\"tab_value\":\"custom\",\"attr_key\":\"notic_content\",\"attr_name\":\"通知内容\",\"attr_value\":\"非常感谢广告网网友对本网站的关注和喜爱，如果有任何的问题，欢迎提供宝贵意见，练习方式参见网站底部邮箱。\",\"del_flag\":0,\"type\":3,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"请输入内容\",\"can_delete\":0,\"sort_num\":10}]},{\"name\":\"前台图片\",\"data\":[{\"id\":44,\"group_value\":\"前台图片\",\"tab_value\":\"custom\",\"attr_key\":\"loginreg_bg\",\"attr_name\":\"登录/注册页背景\",\"attr_value\":\"\",\"del_flag\":0,\"type\":9,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"尺寸 200*200\",\"can_delete\":0,\"sort_num\":10},{\"id\":239,\"group_value\":\"前台图片\",\"tab_value\":\"custom\",\"attr_key\":\"web_img\",\"attr_name\":\"前台logo\",\"attr_value\":\"upload/images/20211101/1635766045081.jpg\",\"del_flag\":0,\"type\":9,\"config_value\":\"\",\"validator\":\"\",\"placeholder\":\"尺寸168*70，透明，白色\",\"can_delete\":0,\"sort_num\":10}]}]}],\"allData\":[{\"id\":81,\"attr_key\":\"web_ico\",\"attr_value\":\"static/admin/image/favicon.ico\",\"validator\":\"\",\"config_value\":\"\",\"type\":9},{\"id\":80,\"attr_key\":\"system_logo\",\"attr_value\":\"static/admin/image/logo.png\",\"validator\":\"\",\"config_value\":\"\",\"type\":9},{\"id\":79,\"attr_key\":\"system_name\",\"attr_value\":\"优点达资讯系统\",\"validator\":\"\",\"config_value\":\"\",\"type\":1},{\"id\":24,\"attr_key\":\"site_name\",\"attr_value\":\"优点达资讯-发现有意思的事儿\",\"validator\":\"[{\\\"required\\\":true,\\\"message\\\":\\\"站点名必须\\\",\\\"trigger\\\":\\\"blur\\\"}]\",\"config_value\":\"\",\"type\":1},{\"id\":25,\"attr_key\":\"site_link\",\"attr_value\":\"http://122.51.249.55:8060/home\",\"validator\":\"\",\"config_value\":\"\",\"type\":1},{\"id\":26,\"attr_key\":\"site_keywords\",\"attr_value\":\"优点达资讯系统，优点达资讯系统优点达资讯系统优点达资讯系统\",\"validator\":\"\",\"config_value\":\"\",\"type\":3},{\"id\":125,\"attr_key\":\"close_website\",\"attr_value\":\"1\",\"validator\":\"\",\"config_value\":[{\"label\":\"是\",\"value\":\"1\"},{\"label\":\"否\",\"value\":\"2\"}],\"type\":4},{\"id\":53,\"attr_key\":\"copy_code\",\"attr_value\":\"皖-备88888888\",\"validator\":\"\",\"config_value\":\"\",\"type\":1},{\"id\":54,\"attr_key\":\"copy_info\",\"attr_value\":\"优点达版权所有，翻版必究\",\"validator\":\"\",\"config_value\":\"\",\"type\":1},{\"id\":55,\"attr_key\":\"phone\",\"attr_value\":\"hewu1122@163.com\",\"validator\":\"\",\"config_value\":\"\",\"type\":1},{\"id\":56,\"attr_key\":\"copy_url\",\"attr_value\":\"http://www.baidu.com\",\"validator\":\"\",\"config_value\":\"\",\"type\":1},{\"id\":57,\"attr_key\":\"black_ip\",\"attr_value\":\"\",\"validator\":\"\",\"config_value\":\"\",\"type\":3},{\"id\":77,\"attr_key\":\"login_title\",\"attr_value\":\"优点达资讯系统\",\"validator\":\"\",\"config_value\":\"\",\"type\":1},{\"id\":2,\"attr_key\":\"notic_title\",\"attr_value\":\"感谢广告网网友\",\"validator\":\"\",\"config_value\":\"\",\"type\":1},{\"id\":44,\"attr_key\":\"loginreg_bg\",\"attr_value\":\"\",\"validator\":\"\",\"config_value\":\"\",\"type\":9},{\"id\":239,\"attr_key\":\"web_img\",\"attr_value\":\"upload/images/20211101/1635766045081.jpg\",\"validator\":\"\",\"config_value\":\"\",\"type\":9},{\"id\":78017,\"attr_key\":\"notic_content\",\"attr_value\":\"非常感谢广告网网友对本网站的关注和喜爱，如果有任何的问题，欢迎提供宝贵意见，练习方式参见网站底部邮箱。\",\"validator\":\"\",\"config_value\":\"\",\"type\":3},{\"id\":78,\"attr_key\":\"login_bg\",\"attr_value\":\"uploadimages202206161655363890291.jpg\",\"validator\":\"\",\"config_value\":\"\",\"type\":9}]},\"allTag\":[{\"id\":1,\"tagname\":\"搞笑\",\"default_data\":\"1\"},{\"id\":2,\"tagname\":\"玻璃新\",\"default_data\":\"1\"},{\"id\":3,\"tagname\":\"12\",\"default_data\":null},{\"id\":14,\"tagname\":\"二次元\",\"default_data\":\"1\"},{\"id\":15,\"tagname\":\"摄影\",\"default_data\":\"1\"},{\"id\":16,\"tagname\":\"汉服\",\"default_data\":\"1\"},{\"id\":17,\"tagname\":\"文字控\",\"default_data\":\"1\"},{\"id\":18,\"tagname\":\"诗歌\",\"default_data\":\"1\"},{\"id\":19,\"tagname\":\"手机控\",\"default_data\":\"1\"},{\"id\":20,\"tagname\":\"懒癌患者\",\"default_data\":\"1\"},{\"id\":21,\"tagname\":\"资深吃货\",\"default_data\":\"1\"},{\"id\":22,\"tagname\":\"军事\",\"default_data\":\"1\"},{\"id\":23,\"tagname\":\"娱乐\",\"default_data\":\"1\"},{\"id\":28,\"tagname\":\"科技\",\"default_data\":\"1\"}],\"allLink\":[{\"id\":1,\"title\":\"123\",\"url\":\"123\",\"des\":\"2031\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":2,\"title\":\"yoi;u;\",\"url\":\";u;ui;ui;\",\"des\":\"u;u;u;u;\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":3,\"title\":\"9555ltltly\",\"url\":\"uluylyultyl\",\"des\":\"tyl58o5o95\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":4,\"title\":\"\",\"url\":\"11111\",\"des\":\"1111111\",\"img\":\"\",\"type\":\"2\",\"default_data\":null},{\"id\":6,\"title\":\"123\",\"url\":\"123123\",\"des\":\"312321\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":7,\"title\":\"hf fjffj\",\"url\":\"fdssf \",\"des\":\"gfd \",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":8,\"title\":\"ccccccccccccccccc\",\"url\":\"cccccccccccccc\",\"des\":\"cccccccccccccccccccc\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":9,\"title\":\"\",\"url\":\"qwdqwdf\",\"des\":\"qwdfqwdfqw\",\"img\":\"\",\"type\":\"2\",\"default_data\":null},{\"id\":11,\"title\":\"uhjimk\",\"url\":\"wdhquw\",\"des\":\"wergerg3r\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":12,\"title\":\"\",\"url\":\"22222\",\"des\":\"2222222\",\"img\":\"\",\"type\":\"2\",\"default_data\":null},{\"id\":21,\"title\":\"12312\",\"url\":\"1231\",\"des\":\"32112\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":26,\"title\":\"1111111111111122222222222\",\"url\":\"qqqqqqqqqqqqqq\",\"des\":\"qqqqqqqqqqqqq\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":36,\"title\":\"\",\"url\":\"https://www.liepin.com/\",\"des\":\"猎聘网\",\"img\":\"upload/images/20211101/1635758116348.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":37,\"title\":\"\",\"url\":\"https://www.360.cn/\",\"des\":\"360\",\"img\":\"upload/images/20211101/1635758101991.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":38,\"title\":\"\",\"url\":\"https://www.mi.com/\",\"des\":\"小米\",\"img\":\"upload/images/20211101/1635758076821.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":40,\"title\":\"\",\"url\":\"http://www.163.com\",\"des\":\"网易\",\"img\":\"upload/images/20211101/1635758063917.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":41,\"title\":\"\",\"url\":\"https://www.1688.com/\",\"des\":\"阿里巴巴\",\"img\":\"upload/images/20211101/1635758024734.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":42,\"title\":\"\",\"url\":\"http://www.zj.qq.com\",\"des\":\"腾讯大浙网\",\"img\":\"upload/images/20211101/1635758049016.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":43,\"title\":\"\",\"url\":\"http://www.china-yintai.com/\",\"des\":\"银泰商业\",\"img\":\"upload/images/20211101/1635758011257.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":44,\"title\":\"\",\"url\":\"http://www.weibo.com\",\"des\":\"新浪微博\",\"img\":\"upload/images/20211101/1635757995478.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":45,\"title\":\"\",\"url\":\"http://v.qq.com\",\"des\":\"腾讯视频6\",\"img\":\"upload/images/20211101/1635757978737.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":46,\"title\":\"\",\"url\":\"http://www.ganji.com\",\"des\":\"赶集网\",\"img\":\"upload/images/20211101/1635757963837.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":47,\"title\":\"1\",\"url\":\"http://www.58.com\",\"des\":\"58同城\",\"img\":\"upload/images/20211101/1635757950706.png\",\"type\":\"2\",\"default_data\":\"1\"},{\"id\":48,\"title\":\"1\",\"url\":\"http://www.baidu.com\",\"des\":\"干啥都能找度娘\",\"img\":\"upload/images/20211101/1635757934567.png\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":49,\"title\":\"淘宝网\",\"url\":\"http://www.taobao.com\",\"des\":\"淘宝网\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":50,\"title\":\"京东购物商城+99\",\"url\":\"http://www.jd.com\",\"des\":\"京东购物商城\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":51,\"title\":\"苏宁易购\",\"url\":\"https://www.suning.com/\",\"des\":\"苏宁易购\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":52,\"title\":\"百度地图\",\"url\":\"https://map.baidu.com/\",\"des\":\"百度地图\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":53,\"title\":\"爱奇艺\",\"url\":\"https://www.iqiyi.com/\",\"des\":\"爱奇艺\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":54,\"title\":\"东方财富\",\"url\":\"http://www.eastmoney.com/\",\"des\":\"东方财富\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":55,\"title\":\"携程网\",\"url\":\"https://www.ctrip.com/\",\"des\":\"携程网\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":56,\"title\":\"虎牙直播\",\"url\":\"https://www.huya.com/\",\"des\":\"虎牙直播\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":57,\"title\":\"网易云音乐\",\"url\":\"https://music.163.com/\",\"des\":\"网易云音乐\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":58,\"title\":\"优酷网\",\"url\":\"https://www.youku.com/\",\"des\":\"优酷网\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":59,\"title\":\"7k7游戏细11\",\"url\":\"http://www.7k7k.com/\",\"des\":\"7k7游戏\",\"img\":\"\",\"type\":\"1\",\"default_data\":\"1\"},{\"id\":70,\"title\":\"11111111111\",\"url\":\"111111111\",\"des\":\"111111\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":89,\"title\":\"\",\"url\":\"www.kengqian.com\",\"des\":\"钱坑坑\",\"img\":\"upload/images/20220616/1655384933363.jpg\",\"type\":\"2\",\"default_data\":null},{\"id\":189,\"title\":\"123\",\"url\":\"1234\",\"des\":\"2031\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":216,\"title\":\"12312\",\"url\":\"1231\",\"des\":\"32112\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":220,\"title\":\"12312\",\"url\":\"1231\",\"des\":\"32112\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":300,\"title\":\"cccccc\",\"url\":\"ccccccccc\",\"des\":\"cccccccc\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":331,\"title\":\"60p;68p\",\"url\":\"7p78p78p\",\"des\":\"7p78p7p7pp\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":473,\"title\":\"95l5l5l5\",\"url\":\"l55lyltlitltiuldada\",\"des\":\"你好\",\"img\":\"\",\"type\":\"1\",\"default_data\":null},{\"id\":500,\"title\":\"\",\"url\":\"www.mahuaten.com\",\"des\":\"坑爹之王马化腾\",\"img\":\"upload/images/20220616/1655384844014.jpg\",\"type\":\"2\",\"default_data\":null},{\"id\":504,\"title\":\"\",\"url\":\"www.mahuaten.com\",\"des\":\"坑爹之王马化腾\",\"img\":\"upload/images/20220616/1655384844014.jpg\",\"type\":\"2\",\"default_data\":null},{\"id\":37134,\"title\":\"ccccccccc\",\"url\":\"xxxxxxxxxxxx\",\"des\":\"ccccccccccc\",\"img\":\"upload/images/20220616/1655340537311.png\",\"type\":\"2\",\"default_data\":null},{\"id\":502807,\"title\":\"\",\"url\":\"www.mahuaten.com\",\"des\":\"坑爹之王马化腾\",\"img\":\"upload/images/20220616/1655384844014.jpg\",\"type\":\"2\",\"default_data\":null},{\"id\":1168893,\"title\":\"\",\"url\":\"666\",\"des\":\"66\",\"img\":\"upload/images/20220616/1655340478141.png\",\"type\":\"2\",\"default_data\":null},{\"id\":1168895,\"title\":\"\",\"url\":\"www.xiaotaiyang.com\",\"des\":\"小太阳\",\"img\":\"upload/images/20220617/1655431602327.png\",\"type\":\"2\",\"default_data\":null},{\"id\":1168896,\"title\":\"\",\"url\":\"123\",\"des\":\"123\",\"img\":\"upload/images/20220617/1655434852262.jpeg\",\"type\":\"2\",\"default_data\":null},{\"id\":1168897,\"title\":\"\",\"url\":\"456\",\"des\":\"456\",\"img\":\"upload/images/20220617/1655435371929.jpeg\",\"type\":\"2\",\"default_data\":null}],\"banner\":[{\"id\":2344,\"advimglink\":\"http://www.jd.com\",\"advimgdesc\":\"无爱无伤，万寿无疆\",\"advimgsrc\":\"upload/images/20211101/1635756787611.jpg\"},{\"id\":449990,\"advimglink\":\"http://www.baidu.com\",\"advimgdesc\":\"只有让自己变得强大，才能无所畏惧\",\"advimgsrc\":\"upload/images/20220614/1655192446879.jpg\"}],\"sideBanner\":[{\"id\":5,\"advimglink\":\"http://www.taobao.com\",\"advimgdesc\":\"开学那点事儿\",\"advimgsrc\":\"upload/images/20211101/1635756021202.jpg\"},{\"id\":6,\"advimglink\":\"http://www.jd.com\",\"advimgdesc\":\"独享云虚拟主机\",\"advimgsrc\":\"upload/images/20211101/1635756052798.jpg\"},{\"id\":449987,\"advimglink\":\"http://www.baidu.com\",\"advimgdesc\":\"全民云计划\",\"advimgsrc\":\"upload/images/20211101/1635755984319.jpg\"}],\"showBanner\":[{\"id\":449988,\"advimglink\":\"htttp://www.baidu.com\",\"advimgdesc\":\"云服务器降破底价\",\"advimgsrc\":\"upload/images/20211101/1635756170903.jpg\"},{\"id\":449989,\"advimglink\":\"http://www.jd.com\",\"advimgdesc\":\"领取阿里云优惠券\",\"advimgsrc\":\"upload/images/20211101/1635756202043.png\"}]}}";

    }

}
